//
//  MaineJournalAppDelegate.h
//  MaineJournal
//
//  Created by Administrator on 8/15/11.
//  Copyright 2011 University of Maine. All rights reserved.
//

#import "DocumentView.h"
#import "NavigationControl.h"
#import "Library.h"

typedef enum {
  kComicType_PDF,
  kComicType_ZIP,
  kComicType_RAR
} ComicType;

@interface ReaderViewController : UIViewController <UINavigationBarDelegate, DocumentViewDelegate, NavigationControlDelegate> {
@private
    UINavigationBar* _navigationBar;
    UIView* _contentView;
    NavigationControl* _navigationControl;
    
    Comic* _comic;
    NSString* _path;
    ComicType _type;
    id _contents;
    DocumentView* _documentView;
    UILabel* _pageLabel;
    
    
    IBOutlet UILabel *_titleLabel;
    IBOutlet UILabel *_pageOfLabel;
    
    UIView* _menuViewInReader;
    UIPopoverController* _menuControllerInReader;
    
    UIView* _modelViewInReader;
    UIPopoverController* _modelControllerInReader;
}
@property(nonatomic, retain) IBOutlet UINavigationBar* navigationBar;
@property(nonatomic, retain) IBOutlet NavigationControl* navigationControl;
@property(nonatomic, retain) IBOutlet UIView* contentView;

@property(nonatomic, retain) IBOutlet UIView* menuViewInReader;
@property(nonatomic, retain) IBOutlet UIView* modelViewInReader;

- (id) initWithComic:(Comic*)comic;
- (IBAction) selectPage:(id)sender;
- (void) saveState;
@end
